package com.lihua.notify.controller;

import com.alibaba.fastjson.JSON;
import com.lihua.notify.pojo.Notify;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * 通知模块
 * @author 15594
 */
@RestController
@RefreshScope
public class NotifyController {

    @Autowired
    private Notify notify;

    @GetMapping("/refreshNotify")
    public String refreshNotify(){
        System.out.println(notify.toString());
        String notify_string = JSON.toJSONString(notify);
        return notify_string;
    }

}
